/*
 * ========================================================================
 *
 *       Filename:  statinfo.h
 *
 *    Description:  This defines the base class for objects that keep stat
 *                  information about guesses.
 *
 *        Version:  1.0
 *        Created:  05/10/2010 09:32:50 AM
 *       Revision:  none
 *       Compiler:  g++
 *
 *         Author:  Alex Avance (aa), aravance@gmail.com
 *        Company:  independent
 *
 * ========================================================================
 *
 * Copyright (C) 2010 Alex Avance
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-
 * 1307, USA.
 *
 * ========================================================================
 */
#ifndef _STATINFO_H_
#define _STATINFO_H_

class StatInfo
{
public:
  typedef unsigned long StatT;

  // ====================  LIFECYCLE     ================================
  StatInfo ();
  StatInfo ( const StatInfo &other );
  StatInfo ( const StatT &front, const StatT &back );
  virtual ~StatInfo ();

  // ====================  ACCESSORS     ================================
  StatT Right () const;
  StatT Wrong () const;

  // ====================  MUTATORS      ================================
  virtual void Guess ( bool result );
  virtual void ResetStats ();

  // ====================  OPERATORS     ================================
  StatInfo& operator= ( const StatInfo &other );

  // ====================  DATA MEMBERS  ================================
protected:
  StatT m_Right, m_Wrong;
}; // ----- end of class StatInfo -----

#endif // _STATINFO_H_

